package dnl.util.ui.table;

/**
  * 
  * 
  * @author Daniel Or
  * @version 1.0
  */
public class ColumnData {

  public String  title;
  public int     width;
  public int     alignment;
  public int index;
  public Class<?> dataType = String.class;
 
  public ColumnData(String title, int width, int alignment) {
    this.title = title;
    this.width = width;
    this.alignment = alignment;
  }
  
	public ColumnData(String title, int width, int alignment, Class<?> dataType) {
		this.title = title;
		this.width = width;
		this.alignment = alignment;
		this.dataType = dataType;
	}  

	/**
	 * Returns the index.
	 * @return int
	 */
	public int getIndex() {
		return index;
	}
	
	/**
	 * Returns the title.
	 * @return String
	 */
	public String getTitle() {
		return title;
	}
	
	/**
	 * Returns the width.
	 * @return int
	 */
	public int getWidth() {
		return width;
	}
	
	/**
	 * Sets the index.
	 * @param index The index to set
	 */
	public void setIndex(int index) {
		this.index = index;
	}
	
	
	public Class<?> getColumnDataType(){
		return dataType;
	}
}
